package dkzcm.club.article.domain.convert;

import dkzcm.club.article.domain.entity.ArticleCategoryBO;
import dkzcm.club.article.infra.basic.entity.ArticleCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ArticleCategoryConvert {
    ArticleCategoryConvert INSTANCE = Mappers.getMapper(ArticleCategoryConvert.class);

    ArticleCategory convertArticleCategory(ArticleCategoryBO articleCategoryBO);

    List<ArticleCategoryBO> convertArticleCategoryList(List<ArticleCategory> articleCategoryList);
}
